import React from 'react';
import ReactDOM from 'react-dom';
import { HashRouter, Route, Switch } from 'react-router-dom';
import './index.css';
import Login from './pages/login';
import PageLayout from './layout/pagelayout';

ReactDOM.render(
  <HashRouter>
      <Switch>
        <Route exact path="/login" component={Login} />
        <Route path="/" component={PageLayout} />
      </Switch>
    </HashRouter>,
  document.getElementById('root')
);